package cn.golxen.blog.service.impl;

import cn.golxen.blog.entity.Errorlogs;
import cn.golxen.blog.mapper.ErrorlogsMapper;
import cn.golxen.blog.service.ErrorlogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ErrorlogsServiceImpl implements ErrorlogsService {

    @Autowired
    ErrorlogsMapper errorlogsMapper;

    @Override
    public List<Errorlogs> getlogs() {
        return errorlogsMapper.getlogs();
    }

    @Override
    public Integer addlog(Errorlogs errorlogs) {
        return errorlogsMapper.addlog(errorlogs);
    }
}
